package com.jiuyin.dianjing.ui.fragment.match;


import android.os.Bundle;
import android.widget.ImageView;

import com.jiuyin.dianjing.R;
import com.jiuyin.dianjing.ui.fragment.base.BaseFragment;

import butterknife.BindView;

import static com.jiuyin.dianjing.api.constant.ApiConstant.KEY_IMG_ID;
import static com.jiuyin.dianjing.api.constant.ApiConstant.KEY_TYPE;

/**
 * Description:
 * File: TrainingCampItemFragment.java
 * Author: Administrator
 * Create: 2020/7/9 18:02
 */
public class TrainingCampItemFragment extends BaseFragment {
    @BindView(R.id.img_des)
    ImageView imageView;

    private int imgId;

    public static TrainingCampItemFragment newInstance(int id) {
        TrainingCampItemFragment fragmentGame = new TrainingCampItemFragment();
        Bundle args = new Bundle();
        args.putInt(KEY_IMG_ID, id);
        fragmentGame.setArguments(args);
        return fragmentGame;
    }


    @Override
    public void fetchData() {

    }

    @Override
    protected int setLayoutId() {
        return R.layout.fragment_training_camp_item;
    }

    @Override
    protected void initData() {
        if (getArguments() != null) {
            imgId = getArguments().getInt(KEY_IMG_ID);
            imageView.setImageResource(imgId);
        }
    }

    @Override
    protected void initView() {
    }
}
